package file;

import java.io.File;
import java.util.Collections;

public class DeleteFileDemo {
    public static void main(String[] args) {

        File file=new File("./test.txt");
        File file1=new File("d:/loo");
        if(file.exists())
        {
            file.delete();
        }
        if(file1.exists()){

            file1.delete();
        }
        //file.
    }
}
